import java.util.Date;

import javax.microedition.lcdui.ChoiceGroup;
import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.CommandListener;
import javax.microedition.lcdui.DateField;
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.Form;
import javax.microedition.lcdui.Item;
import javax.microedition.lcdui.ItemStateListener;
import javax.microedition.lcdui.StringItem;
import javax.microedition.lcdui.TextField;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;
/*
 *  
 * Meeting Agent-: responsible for setting up a meeting among a group of people
 *  
 */

public class MeetingAgent
{
	/*
	 * attributes- what a meeting agent need to know
	 */

	
     private String [] startTimes,endTimes;
	private double length; //length of meeting
	private int Numreceivers;// number of receivers
	
	private String [] receiversNum; //array to store the receivers number
	
	private int receiverIndex = -1; //use to keep track of receiver
	private boolean [][] receiversTimes;//dates.length vs receiversNum.length
	
	/*constructor*/
	public MeetingAgent( String []sT,String[] eT,double l,int NumR,String [] rNum,int rIndex,boolean [][] rTimes)
	{
		 startTimes=sT;
		 endTimes=eT;
		 length=l;
		 Numreceivers=NumR;
		 receiversNum=rNum;
		 rTimes=receiversTimes;
		 
		 
	}
	//return the array containing the possible start time(s) of the meeting given by the sender
	public String[] getStartTimes()
	{
		
		return startTimes;
	}
	
	//return the array containing the possible end time(s) of the meeting given by the sender
	public String[] getEndTimes()
	{
		
		return endTimes;
	}
	
	//return the length of the meeting
	public double getLength()
	{
		
		return length;
	}
	//return the number of people the sender is hoping to send the agent to
	public int getNumReceivers()
	{
		return Numreceivers;
	}
	
	//return the  receivers' numbers
	public String[] getReceiversNum()
	{
		
		return receiversNum;
	}
	//return the index of the current receiver (user)
	public int getReceiverIndex()
	{
		
		return receiverIndex;
	}
	//return the possibility of a receiver available at a given time
	public boolean[][] getReceiversTimes()
	{
		
		return receiversTimes;
	}
}
